package com.gagakuai.bpm.domian.dto.camunda;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/*
 * @program: mss_server
 * @description: 工作流dto
 * @author: houhong
 * @create: 2022-03-22 10:55
 */
@Data
public class WorkFlowInstenceDto {

    /*
     * 主键
     */
    private String id;

    /*
     * 流程实列ID
     */
    private String procInstId;

    /*
     * 业务KEY
     */
    private String businessKey;

    /*
     * 流程定义key
     */
    private String procDefKey;

    /*
     * 流程定义ID
     */
    private String procDefId;

    /*
     * 开始时间
     */
    private Date startTime;

    /*
     * 结束时间
     */
    private Date endTime;

    /*
     * 移除时间
     */
    private Date removalTime;

    /*
     * 耗时
     */
    private Long duration;

    /*
     * 启动ID
     */
    private String startUserId;

    /*
     * 启动节点ID
     */
    private String startActId;

    /*
     * 结束节点ID
     */
    private String endActId;

    /*
     * 夫流程实列ID
     */
    private String superProcessInstanceId;

    /*
     * 流程实列根ID
     */
    private String rootProcInstId;

    /*
     * 夫案列实列ID
     */
    private String superCaseInstanceId;

    /*
     * 案列实列ID
     */
    private String caseInstId;

    /*
     * 删除原因
     */
    private String deleteReason;

    /*
     * 租户ID
     */
    private String tenantId;

    /*
     * 状态
     */
    private String state;


    private String userId;

    private String userName;


    /*
     * 任务类型 --key
     */
    private String processDefKey;


    /*
     * 当前节点
     */
    private String curNodeName;

    /*
     *  当前节点定义KEY
     *
     */
    private String curNodeDefKey;


    /*
     *  流程名字
     *
     */
    private String processName;

    /*
     * 应办人
     */
    private String assignee;


    /*
     * 流程状态
     */
    private String processStatus;

    private String status;

    private String taskId;

    private Boolean isEdited;
    /*
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dueDate;
}